package com.vhall.component.controller.livecolumn;

import com.vhall.component.entity.livecolumn.vo.LiveAdjustingOperLevelsVO;
import com.vhall.component.entity.livecolumn.vo.LiveColumnOperListRequestVO;
import com.vhall.component.entity.livecolumn.vo.LiveColumnOperListRsponseVO;
import com.vhall.component.entity.livecolumn.vo.LiveTopOperVO;
import com.vhall.component.entity.page.vo.PageVO;
import com.vhall.component.plugin.common.annotation.TokenAuth;
import com.vhall.component.service.livecolumn.LiveColumnService;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 栏目运营
 *
 * @author xing.wang
 * @date 2023/8/5
 */
@RestController
@RequestMapping("/v4/live-column/data/console")
public class LiveColumnDataConsoleController {
    @Resource
    private LiveColumnService liveColumnService;


    /**
     * 栏目运营列表
     */
    @TokenAuth
    @PostMapping("/column_oper-list")
    public PageVO<LiveColumnOperListRsponseVO> columnOperationsList(@Validated LiveColumnOperListRequestVO vo) {
        return liveColumnService.columnOperationsList(vo);
    }

    /**
     * 调整运营级别
     */
    @TokenAuth
    @PostMapping("/adjusting_oper_levels")
    public Boolean adjustingOperLevels(@Validated LiveAdjustingOperLevelsVO vo) {
        return liveColumnService.adjustingOperLevels(vo);
    }

    /**
     * 栏目置顶
     */
    @TokenAuth
    @PostMapping("/top_column")
    public Boolean topColumn(@Validated LiveTopOperVO vo) {
        return liveColumnService.topColumn(vo);
    }

    /**
     * 栏目置顶数量
     */
    @TokenAuth
    @GetMapping("/top_column_num")
    public Boolean topColumnNum() {
        return liveColumnService.topColumnNum();
    }


}
